<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2021/5/1
  Time: 23:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--通过taglib标签引入所需的标签库--%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>反馈管理</title>
</head>
<style>
    body{
        background-image: url("http://d00.paixin.com/thumbs/1038076/40301917/staff_1024.jpg?watermark/1/image/aHR0cDovL2QwMC5wYWl4aW4uY29tL2RwVG8zNjBfd20ucG5n/dissolve/100/gravity/SouthWest/dx/0/dy/0") ;
        width: 100%;
        height: 100%;
        background-size: 100% 120%;
        font-size: 30px;
        padding: 0px;
        margin: 0px;
        font-family: 宋体;
    }
    button{
        float: right;
        margin-bottom: 30px;
        font-size: 25px;
        color: white;
        background-color: lightgray;
        border-radius: 5px;
    }
    button:hover{
        background-color: deepskyblue;
    }
    .container{
        text-align: center;
        margin: 20px auto;

    }
    table {
        border: 1px solid black;
        width: 100%;
        background-color: whitesmoke;

    }
    td{
        border: 1px solid black;
        padding: 10px;
    }
    td:hover{
        background-color: yellow;
    }
    .userinfo{
        float: left;
        display: block;
    }

    a{
        text-decoration: none;
        font-size: 20px;
        color: black;
    }
    a:hover{
        color: deepskyblue;
    }
    nav{
        width:100%;
        height: 80px;
        float: left;
        position: relative;

    }
</style>
<body>
<nav>
    <a href="Home.jsp">首页</a>
    <%if(session.getAttribute("iden").equals("admin")){%><a href="showTable2"><%}else{%><a href="showTable"><%}%>图书目录</a>
    <a href="person.jsp">读者中心</a>
    <a href="showComment">评论区</a>
</nav>
<div class="container">
    <button>退出</button>
    <table cellspacing="0px">
        <tbody>
        <c:forEach var="feedback" items="${list}">
        <tr>
            <td>
                <div class="userinfo">
                    姓名：${feedback.uName}<br>
                    年龄：${feedback.age}<br>
                    性别：${feedback.sex}<br>
                    邮箱：${feedback.email}<br>
                    电话：${feedback.phone}<br>
                    反馈信息：${feedback.information}
                </div>
            </td>
        </tr>
        </c:forEach>
        <tr align="center">
            <th colspan="8">
                当前页数${iPage}/${iPageCnt}
                <c:if test="${iPage>1}">
                    <a href="showTable?page=1">第一页</a>
                    <a href="showTable?page=${iPage-1}">上一页</a>
                </c:if>
                <c:if test="${iPage<requestScope.iPageCnt}">
                    <a href="showTable?page=${iPage+1}">下一页</a>
                    <a href="showTable?page=${iPageCnt}">页尾</a>
                </c:if>
            </th>
        </tr>
        </tbody>
    </table>

</div>
</body>
</html>